package eventtest 
{
	import flash.display.Sprite;
	import iscript.gameFramework.GameLite.directEvent.DirectEventParameter;
	import iscript.gameFramework.GameLite.Game;
	/**
	 * ...
	 * @author 
	 */
	public class EA extends Sprite
	{
		private var index:int=0
		public function EA() 
		{
			
			  //Game.DirectEvent.destroy("2-1", xxx)
			  Game.DirectEvent.receive("1-1", xxx)
			  Game.DirectEvent.receive("2-1", xxx)
			 
		}
		
		private function xxx(e:DirectEventParameter):void {
			
				  Game.DirectEvent.destroy("1-1", xxx)
				  trace("EA",++index,e["name"])
				  }
		
	}

}